package lab.anoper.juc.utils;

import java.util.Random;

/**
 * @author 闫家洪（yanjiahong@vcredit.com）
 * @since 2024/12/12
 */
public class ThreadUtils {
    private static final Random random = new Random();

    public static void randSleep(int maxMills) {
        try {
            Thread.sleep(random.nextInt(maxMills));
        } catch (InterruptedException e) {
            // do nothing
        }
    }
}
